﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Frogs.Stability.CircuitBreaker
{
    /// <summary>
    /// Defines a Circuit Breaker for accepting a function
    /// </summary>
    public interface IActionCircuitBreaker : ICircuitBreaker
    {
        /// <summary>
        /// Attempt to perform the supplied action within the constraints of a circuit breaker.
        /// </summary>
        /// <param name="action"></param>
        void Do(Action action);
    }
}
